package com.example.gulimall.seckill.feign;

import com.example.common.to.kill.SkuInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *      商品服务远程调用
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @PostMapping("/product/skuinfo/getSkuInfo")
    List<SkuInfoTo> getSkuInfo (@RequestBody List<Long> skuIds);

}
